solving using the quadratic formula